package com.gexiaobao.pigeon.app.util

import androidx.core.content.ContextCompat
import com.gexiaobao.pigeon.R
import me.hgj.jetpackmvvm.base.appContext


object Dict {

    val orderBigBusinessTypeHaspMap = HashMap<Int, String>()
    val orderBigBusinessStateHaspMap = HashMap<Int, String>()
    val pigeonSexHaspMap = HashMap<Int, String>()
    val shopOrderStatus = HashMap<Int, String>()
    val shopOrderStatusColor = HashMap<Int, Int>()
    val deliveryType = HashMap<String, String>()

    init {
        deliveryType["yuantong"] = appContext.getString(R.string.YTO)//韵达
        deliveryType["yunda"] = appContext.getString(R.string.YunDa_Express)//"韵达快递"
        deliveryType["zhongtong"] = appContext.getString(R.string.ZTO_EXPRESS)//"中通快递"
        deliveryType["shentong"] = appContext.getString(R.string.STO_Express)//"申通快递"
        deliveryType["jtexpress"] = appContext.getString(R.string.JT_Express)//"极兔速递"
        deliveryType["youzhengguonei"] = appContext.getString(R.string.postal_express_package)//"邮政快递包惠"
        deliveryType["shunfeng"] = appContext.getString(R.string.SF_Express)//"顺丰速运"
        deliveryType["ems"] = appContext.getString(R.string.ems)//"EMS"
        deliveryType["jd"] = appContext.getString(R.string.Jingdong_logistics)//"京东物流"
        deliveryType["debangkuaidi"] = appContext.getString(R.string.Deppon_Express)//"德邦快递"
        deliveryType["shunfengkuaiyun"] = appContext.getString(R.string.sf)//"顺丰快运"
        deliveryType["debangwuliu"] = appContext.getString(R.string.db)//"德邦"

        /**
         * 0--生成，1-支付中，2-支付成功，3-已发货 4-已签收 5-支付失败，6-退款中，
         * 7-退款成功，8-退款失败,9-订单关闭 10-已评价, 11-退货中 12-退货成功 13-退货失败 14-退货审核中 15-审核通过）
         * */
        shopOrderStatusColor[0] = ContextCompat.getColor(appContext, R.color.color_FF4500)
        shopOrderStatusColor[1] = ContextCompat.getColor(appContext, R.color.color_FF4500)
        shopOrderStatusColor[2] = ContextCompat.getColor(appContext, R.color.color_FF4500)
        shopOrderStatusColor[3] = ContextCompat.getColor(appContext, R.color.color_FF4500)
        shopOrderStatusColor[4] = ContextCompat.getColor(appContext, R.color.comm_text_gray_light)
        shopOrderStatusColor[5] = ContextCompat.getColor(appContext, R.color.color_FF4500)
        shopOrderStatusColor[6] = ContextCompat.getColor(appContext, R.color.color_FF4500)
        shopOrderStatusColor[7] = ContextCompat.getColor(appContext, R.color.comm_text_gray_light)
        shopOrderStatusColor[8] = ContextCompat.getColor(appContext, R.color.color_FF4500)
        shopOrderStatusColor[9] = ContextCompat.getColor(appContext, R.color.comm_text_gray_light)
        shopOrderStatusColor[10] = ContextCompat.getColor(appContext, R.color.comm_text_gray_light)
        shopOrderStatusColor[11] = ContextCompat.getColor(appContext, R.color.color_FF4500)
        shopOrderStatusColor[12] = ContextCompat.getColor(appContext, R.color.comm_text_gray_light)
        shopOrderStatusColor[13] = ContextCompat.getColor(appContext, R.color.color_FF4500)
        shopOrderStatusColor[14] = ContextCompat.getColor(appContext, R.color.color_FF4500)
        shopOrderStatusColor[15] = ContextCompat.getColor(appContext, R.color.color_FF4500)


        shopOrderStatus[0] = appContext.getString(R.string.create)//"生成"
        shopOrderStatus[1] = appContext.getString(R.string.during_the_payment)//"支付中"
        shopOrderStatus[2] = appContext.getString(R.string.waiting_for_release)//"等待出库"
        shopOrderStatus[3] = appContext.getString(R.string.wait_for_delivery)//"等待收货"
        shopOrderStatus[4] = appContext.getString(R.string.have_been_signed)//"已签收"
        shopOrderStatus[5] = appContext.getString(R.string.payment_failure)//"支付失败"
        shopOrderStatus[6] = appContext.getString(R.string.being_refunded)//"退款中"
        shopOrderStatus[7] = appContext.getString(R.string.refund_successful)//"退款成功"
        shopOrderStatus[8] = appContext.getString(R.string.refund_failure)//"退款失败"
        shopOrderStatus[9] = appContext.getString(R.string.order_close)//"订单关闭"
        shopOrderStatus[10] = appContext.getString(R.string.evaluated)//"已评价"
        shopOrderStatus[11] = appContext.getString(R.string.being_refunded)//"退款中"
        shopOrderStatus[12] = appContext.getString(R.string.successful_return)//"退货成功"
        shopOrderStatus[13] = appContext.getString(R.string.refund_failure)//"退款失败"
        shopOrderStatus[14] = appContext.getString(R.string.refund_review)//"退款审核中"
        shopOrderStatus[15] = appContext.getString(R.string.being_refunded)//"退款中"

        pigeonSexHaspMap[0] = appContext.getString(R.string.now_empty)//"暂无"
        pigeonSexHaspMap[1] = appContext.getString(R.string.hint_unknown)//"未知"
        pigeonSexHaspMap[2] = appContext.getString(R.string.hint_female)//"雌"
        pigeonSexHaspMap[3] = appContext.getString(R.string.hint_male)//"雄"

        orderBigBusinessTypeHaspMap[1] = appContext.getString(R.string.activity_mine_account_edit_top_up)//充值
        orderBigBusinessTypeHaspMap[2] = appContext.getString(R.string.activity_mine_account_edit_withdraw)//体现
        orderBigBusinessTypeHaspMap[3] = appContext.getString(R.string.main_match)//"比赛"
        orderBigBusinessTypeHaspMap[4] = appContext.getString(R.string.pass)//"关卡"
        orderBigBusinessTypeHaspMap[5] = appContext.getString(R.string.competition_events)//"参赛项目"
        orderBigBusinessTypeHaspMap[6] = appContext.getString(R.string.activity_mine_account_edit_transfer)//"转账"
        orderBigBusinessTypeHaspMap[10] = appContext.getString(R.string.main_market)//"商城"
        orderBigBusinessTypeHaspMap[11] = appContext.getString(R.string.shop)//"店铺"
        orderBigBusinessTypeHaspMap[9] = appContext.getString(R.string.project_fund)//"项目奖金"
        orderBigBusinessTypeHaspMap[18] = appContext.getString(R.string.project)//"项目"
        orderBigBusinessTypeHaspMap[15] = appContext.getString(R.string.pigeon_racing_fee)//公棚赛鸽缴费
        orderBigBusinessTypeHaspMap[16] = appContext.getString(R.string.interest_settlement)//"结息"
        orderBigBusinessTypeHaspMap[17] = appContext.getString(R.string.interest_accrual)//"计息"

        orderBigBusinessStateHaspMap[0] = appContext.getString(R.string.market_shop_order_list_for_fragment_layout_activity_my_order_tab_unpay)//"待支付"
        orderBigBusinessStateHaspMap[1] = appContext.getString(R.string.during_the_payment)//"支付中"
        orderBigBusinessStateHaspMap[2] = appContext.getString(R.string.payment_success)//"支付成功"
        orderBigBusinessStateHaspMap[3] = appContext.getString(R.string.shipped)//"已发货"
        orderBigBusinessStateHaspMap[4] = appContext.getString(R.string.have_been_signed)//"已签收"
        orderBigBusinessStateHaspMap[5] = appContext.getString(R.string.payment_failure)//"支付失败"
        orderBigBusinessStateHaspMap[6] = appContext.getString(R.string.being_refunded)//"退款中"
        orderBigBusinessStateHaspMap[7] = appContext.getString(R.string.refund_successful)//"退款成功"
        orderBigBusinessStateHaspMap[8] = appContext.getString(R.string.refund_failure)//"退款失败"
        orderBigBusinessStateHaspMap[9] = appContext.getString(R.string.order_close)//"订单关闭"
        orderBigBusinessStateHaspMap[10] = appContext.getString(R.string.evaluated)//"已评价"


    }

}
